package demo.day02

//15 Kotlin语言Nothing类型特点
fun main() {
    show(-1)
}

private fun show(number: Int){
    when(number){
        // Exception in thread "main" kotlin.NotImplementedError: An operation is not implemented: 没有这个分数
        -1 -> TODO("没有这个分数")
        in 0..59 -> println("不及格")
        in 60..70 -> println("及格了，继续努力")
        in 71..80 -> println("距离优秀只有一步了")
        in 80..100 -> println("好小子，值得肯定")
    }
}